REVIEW-1804: make ExtensiblePolymorphicDomainObjectContainer support closure-based factories and type bindings