title: How do I make this JavaFX binding fire more than once?
body: <p>Why does this binding not trigger its associated code when the source data it is bound to is updated the second time? </p>
  
  <p>It seems to me that every change of any TestObj's 'name' field should result in testProperty1 showing the 3rd element's name. In this case it shows the name after binding, and after the first update, but after the second update it still shows the name from the first update. How do I get it to update testProperty1 every time a TestObj is changed?</p>
  
  <pre><code>class TestObj {
      var name by property&lt;String&gt;()
      fun nameProperty() = getProperty(TestObj::name)
  }
  
  class TestBase {
      var testObjs by property&lt;List&lt;TestObj&gt;&gt;()
      fun testObjsProperty() = getProperty(TestBase::testObjs)
  }
  
  class TestBaseModel: ItemViewModel&lt;TestBase&gt;(TestBase()) {
      val objects: ListProperty&lt;TestObj&gt; =
          bind(autocommit = true) { item?.testObjsProperty() } as ListProperty&lt;TestObj&gt;
  
      fun observableObjs(): StringBinding {
          val observableObjs = FXCollections.observableList(objects) { o: TestObj -&gt;
              arrayOf&lt;Observable&gt;(
                  o.nameProperty()
              )
          }
          return stringBinding(observableObjs, objects) {
              (observableObjs.map {
                  it.name
              }).joinToString()
          }
      }
  }
  
  val testProperty1 = SimpleStringProperty()
  testProperty1.value = "unset"
  
  val base = TestBaseModel()
  for (i in 0..4) {
      base.objects.add(TestObj().apply{
          name = "$i"
      })
  }
  
  assertEquals("unset", testProperty1.value)
  
  testProperty1.bind(stringBinding(base.observableObjs()) {
      base.objects[2].name
  })
  
  assertEquals("2", testProperty1.value)
  
  base.objects[2].name = "a"
  
  assertEquals("a", testProperty1.value)
  
  base.objects[2].name = "ab"
  
  // This assertion fails, claims value is still "a"
  assertEquals("ab", testProperty1.value)
  
  </code></pre>