add min, mid and max Rect helpers

(originally #458, now updated for the new `master` branch).

Like `getWidth()` and others, these functions require the rect to be in canonical form and offer a helper veneer.