Modified node_factory to accept a different field type for the ManyToMany relationship
Fix object descendant check