Change all internal bounds calculations to use { xMin, yMin, xMax, yMax } objects instead of flash.geom.Rectangle instances