Under ruby 2.x, the stdlib OpenStruct provides #[] and #[]=; fixes #816