Clean up the spec helper output before yamlizing it.

This prevents an error in 1.9 mode where it was unable to reconstruct objects
that aren't used in the test anyways.