smaz_generic-tools: new primitive for in-place element replacement