Add index information to open/close tag callbacks

Allows parser callbacks to track the current position relative to the buffer.