various debugging and performance improvements
relationship/inverserelationship is just another typedattachment
option to use concrete model