Set error pointer to the middle of entity

Add getPointerEntities method to token helper module
Make require* binary rules more consistent