Various small changes to make travis build for 1.8.7 pass

Under Ruby 1.9.7 and 2.0 the stubs cannot be saved via to_yaml. This stems probably from the fact that Ruby 1.9 uses per default another yaml library (syck, if I recall correctly)