Set error pointer to the middle of entity

Add getPointerEntities method to token helper module, right now
used only inside binary rules
Make require* binary rules more consistent