minor optimizations to SPMatrix, SPPoint, SPRectangle