extended the API for EntityMaps

extended the API to allow for specification of index Type and value type in case of EntityMaps.

I tried to create test, but unfortunately I could not find how to test if the types are set correctly. It works in my test application.