Make NodePathIterator countable and seekable

fix #237