Fixed getAllInstances for model implementing interfaces of different
metamodels
Commented out buggy code that caused unexpected movement of objects from
their container to the parent resource