Fix geometry.rectmidpoint() mathematical error.