R21: Fix MgBaseShape::_getExtent() and setExtraWidth().