schmittjoh/serializer — pull request #12 by dbu (2012-12-15 13:26:47+00:00)
Title: add check and helpful exception message on inconsistent type situation

follow-up of #10 i try to add a mesage.

not sure if there would be a possibility to detect the mistake earlier - but i think not. i was looking at GraphNavigator too, but thought doing the exception right next to where the error could happen is the most reliable even in case the context is going to be used in different ways later.