Self-constraint not included in frozen constraints

`cabal freeze` no longer includes a constraint for the package being frozen. Fixes #1908.