Verify dictionary types in strict mode. This should fix #28