I think what the ORM is doing is unsetting these properties/setting them to null after loading the proxy. That's why they get not serialized.

Have you tried using a handler/listener instead which sets the type to the "real" class when a proxy is encountered?