Fix rounding issues in Map::invalidateSize