Fixes issue #214
We now resolve modes correctly for contained property associations,
namely in the context of the model element being referenced.
Better error message for resolving mode.