Make `ref` attribute optional, and changable in runtime, add `bindTo` method - #2