title: QML wrong integration in javascript hashmaps?
body: <p>I've found an issue tonight and I wonder if this is a mistake between the keyboard and the screen or a QML/javascript integration problem.</p>
  
  <p>Here is my example:</p>
  
  <pre><code>var myHash = {}
  
  for (var i=0; i&lt;3; ++i) {
      var newObject = Qt.createQmlObject('import QtQuick 2.3; Rectangle {color: "red"; width: 20; height: 40}', main, "test")
      console.log(newObject.color)
      myHash[newObject] = i
  }
  
  for (var key in myHash) {
      console.log("Object type:" + key)
      console.log("Color: " + key.color)
  }
  </code></pre>
  
  <p>The output is:</p>
  
  <pre><code>qml: Initial color: #ff0000
  qml: Initial color: #ff0000
  qml: Initial color: #ff0000
  qml: Object type:QQuickRectangle(0x98e9ac8)
  qml: Color: undefined
  qml: Object type:QQuickRectangle(0x98da7a0)
  qml: Color: undefined
  qml: Object type:QQuickRectangle(0x970b328)
  qml: Color: undefined
  </code></pre>
  
  <p>Thus, when I've stored my QML object in the hash-map <code>myHash</code> as a key, QML has kept the object type, but forgot the properties?</p>