delete bound copies of data functions on teardown (#1538)

Not ready for merge - just a (failing) test case for now. See #1538.