Add a new method, `translate_by_size`, to rectangles

Forgot to submit this PR with rust-lang/#4460.

r? @glennw (or whoever)