This has been fixed by @isratrade in #828, so you can rebase @eLobato and get this automatically.  You just need to define a method to say which object types can be nested.