Fix #825: ParamDefs of tailrec methods should be mutable.

Considering them as immutable was fine for the purposes of JSDesugaring, but not for the inliner, causing subtle bugs.

This PR replaces #828.