If we consider referenced type then we should inspect it and add required model fo required model (deep model graph traversal)
fixed test.
Merge pull request #165 from sobolk/master

Deep model introspection