Remove incorrect semicolon from pathForType example.
Also changed the example to use .extend instead of reopen
Merge pull request #1918 from bmac/fix-pathfortype

Remove incorrect semicolon from pathForType example.