avoids use of to_h on Struct

ruby 1.9 complained, so that method must not exist on that ruby engine.

refs #17