Dirty rectangles should track MBR

Fix bug in RectangleManager where `createDirty()` and `clean()` didn't take into account MBR, causing drawing artifacts when rotating entities.