Shape methods on Path get "add" prefix.

Instead of Path.rect you use Path.addRect. This is more in line with
the proposed Path objects WHATWG standard.
Add test for path resampling code.