synthAppInstances
This is an auxiliary procedured used by `rw` and `apply` tactics. It synthesizes pending type class instances. The new test contains an example where it failed. The comment at `synthAppInstances.step` explains why, and the fix.