Save some allocations in updateSolved

Traverse the term to see if any holes need updated. The extra traversal
appears to be worth it, to save allocations when no updates are needed.