Fix and test localToGlobal/globalToLocal/getBounds.