added nscoding methods to rkpathtemplate

@segiddins Can you take a look at this? Once you sign off I'll merge it in.