title: Reflect decorator isn't saving/retrieving data for an object
body: <p>What am I doing wrong? I have the following decorator functions setup to hold metadata about a class, and they both look like this (one to set the data and one to get the data):</p>
  
  <pre><code>function setComponentMenu(text: string): any {
      return Reflect.metadata('componentPath', text);
  }
  function getMenuPath(target: any): any {
      return Reflect.getMetadata('componentPath', target);
  }
  </code></pre>
  
  <p>I am then using it like this, and the <code>customEditor</code> decorator works just fine, and puts an instance of the <code>CameraEditor</code> class into <code>Globals.editors</code>:</p>
  
  <pre><code>@customEditor(Camera)
  @setComponentMenu('Renderers/Camera')
  class CameraEditor extends Editor {
  
  }
  </code></pre>
  
  <p>After the value has been set, and I try to get it back like this:</p>
  
  <pre><code>for(let i = 0; i &lt; Globals.editors.length; i++){
      let editor: Editor = Globals.editors[i];
      let path = getMenuPath(editor);
      console.log(path);
  }
  </code></pre>
  
  <p>I am getting <code>undefined</code>, which is fine for items that don't have the <code>@setComponentMenu</code> but the <code>CameraEditor</code> does have it so I would expect the console to display <code>Renderers/Camera</code>.</p>
  
  <p>What is wrong?</p>