Avoid OpenStruct#[]=, OpenStruct#[]

Ruby 1.9 doesn't support OpenStruct#[]=, OpenStruct#[]