Adds head operation in JsonPointer class. Resolves issue #169.