Addressing Dwight's comments.
  - moved rejects from PrimitiveState into RegExState
  - added a few more examples to better test corner cases.