Implement 0 matches means segment whole field

And fix up some other tests that expect failures so they don't occasionally
throw exceptions.
boost_before should support integers