make selfLink namespace aware

Makes the selfLink resolvable for content not in the default namespace.
Thanks for adding-- is there no test for list types?