fix: `simp` support for `OfNat` instances that are functions

closes #4462
2 files changed