[bugfix] Wrong type set for map after calling map:remove, resulting in failing key lookups.