Access OpenStruct objects using struct syntax

- This ensures OpenStructs work in both ruby 1.9 and 2.
- Test  this code using OpenStruct objects, not Hashes.