Merge relations between super/subModels more thoroughly. Fixes #273.