Some performance improvements in DalToJsDal serialisatyion/deserialisation