[JOHNZON-401] fix serialization of nested polymorphic objects
2 files changed