Correct resolution for rotated rasters

The current implementation of `RasterReader.res()` is only correct for unrotated rasters. This PR should fix that.

I suggest leaving the current implementation as a special case in the code.