Fix routepolicy checkUrlPrefix

Forgot to pass in `type` to checkUrlPrefix.

Found because I was checking out the linker and happened to be looking
at the linker output for this package and I was thinking, "um, why is `type` 
being declared as a package-scope variable?"  :-)

Added checkUrlPrefix unit test.