Fixed improper escaping of type link for JSONNode.
Refactored API to be able to share more code between entry points since it's not possible to match root and other nodes using the same methods.
Added tests to check access to properties via links.