Bugfix in Function::clear_all_defintions()
Minor changes in code to test incorrect results due to compute_at