gnomonic/stereographic-projection: micro optimizations

Moved the condition to create a scale matrix for the resampler or not out
of the innerloop.