Fix changeSetCompute on deleting code in a CBN with a function definition

1. Fix delta compute when code was deleted in a CBN but the function
definition did not change.
2. Testcases