Fixed a bug with NMath.ScalePolygon which scaled down incorrectly.