Fix initialize in Ruby 2.1

attrs needs to be cast to a Hash, or else it might break when OpenStruct gets a hold of it.