0513 02 Serialization, general fixes

added serialization of repmap