title: Golang yaml.v2 marshals an array as a sequence
body: <p>Given the following YAML: </p>
  
  <pre><code>array.test: ["val1", "val2", "val3"]
  </code></pre>
  
  <p>I Unmarshal it using gopkg.in/yaml.v2 into a <code>map[string]interface{}</code>. Then I get a single key whose value is an array of 3 values.</p>
  
  <p>When I then Marshal it again to YAML, the resulting YAML looks like this:</p>
  
  <pre><code>array.test:
  - val1
  - val2
  - val3
  </code></pre>
  
  <p>The array was actually marshaled as a sequence instead of an array.</p>
  
  <p>This is the entire GoLang code:</p>
  
  <pre><code>func main(){
      data := `array.test: ["val1", "val2", "val3"]`
      conf := make(map[string]interface{})
      yaml.Unmarshal([]byte(data), conf)
  
      data2, _ := yaml.Marshal(conf)
      fmt.Printf("%s\n", string(data2))
  }
  </code></pre>
  
  <p>How can I overcome this issue?</p>