Assert that we call 'map' only for subentities that are supported by the MCMGMapper instance

Patch sent to me by Timo Betcke, after two days of desperate debugging.