Handle inheritance when determining mapping

For any object hierarchy the Single() call failed as there is more than
one.
Merge pull request #96 from ocdi/master

Handle inheritance when determining mapping