add charrange handling to the NFA

This wont be used as long as nqp does not use $EDGE_CHARRANGE, so
this patch on its own should not break anything.