fixed #661 - InstanceAware/ManagedContext and object graph problems