Map for non-string keys (taken from meteor.js)