Pull over some ModelExampleGroup code from rspec2.