Fixed removal of polygon/polyline objects when resizing a map

They were removed when their origin was falling outside of the map. Now
they are removed when their bounding rect falls outside of the map.

Object rotation is not handled yet, however.