Fix bug in `genericApplySubst`.

And forbid in general usage of `view`.