Actually hattach inserted value to tree so that it is freed correctly.