fix: avoid invalid metavar assignments in `instantiateTheorem`
2 files changed