implement attachTo for blocks
update proto to use attachTo instead of replaceBindings
remove replaceBindings
refactor binding tests to test attachTo bindings as well