Remove unnecessary definitions in basetypes.
Get map iterators to work with const.
Replace map insert with perfect forwarding versions.
Fix bug in map groupby.