allow for ma to contain Int and Long keys

The current way of handling maps only allows for keys to be strings. This results in a match error at runtime. Sometimes json apis use an object with numeric ids as the fields, for easy access of an element in the js.