title: Package name typed twice for hosted Pub packages
body: <p>In regards to this <a href="https://www.dartlang.org/tools/pub/dependencies.html" rel="nofollow">Pub Dependencies</a> page and this code snippet:</p>
  
  <pre class="lang-none prettyprint-override"><code>dependencies:
    transmogrify:
      hosted:
        name: transmogrify
        url: http://some-package-server.com
  </code></pre>
  
  <p>Why does the value of <code>name</code> exist both under <code>dependencies</code> and as a mapping under <code>hosted</code>? Are they ever different?</p>