[bugfix] Wrong type set for map after calling map:remove

Fixes failing test.