enable efficient message copying for zeromq (currently used only in benchmarkSampler). cleanup some code.