metadata: added currentpath() to PathSet, improved xpath, changed unit test