Support 1.9.3 with #marshal_dump instead of #to_h

Called to pass the Documents.configuration to the
`Elasticsearch::Client`. Both effectively pass a hash of values from the
OpenStruct.