Add  route to setIdToElem.  Correctly fixes #646

shouldn't this be `config.setIdToElem(parentResource, parentId, parentResource.route);` if parent is set?