define [] for OpenStruct if using a version of Ruby that doesn't