Improved exception messages for mis-mapped collections (fixes #100) and added a unit test