Remove incorrect semicolon from pathForType example.

Also changed the example to use .extend instead of reopen