Fix instance detection for inliner optimization

Caused by #648.  I'll try to review for similar breakages.  I already caught the MagicDo one in the original PR, so should've thought of this one.

I do note that this `isOpDict` check is different than the `isEffDict` check in that it doesn't optimize within `Prelude`.  I guess that doesn't matter.