parentNode can now be a function

Allowing for more advanced traversion (e.g. nested properties)
Merge pull request #8 from FokkeZB/master

parentNode can now be a function