node: fix reference counting in normalizeWith thanks to Shaunak Mirani for reporting the problem.
node: tidy nonsense in remove_child