fix #3: transform objects to pointers in encodeParse()

Code was already transforming objects to pointers, but was working properly: the `constructor`of a model did not have for me any `className`