Changes to way serializers work to reduce static memory usage for embedded targets