Make filters on mutated vars an error.

Closes PR 14422.