Fix bug in RectangleGeometry where array was indexed past its length.