Inline thunks that don't actually perform any computation.
Remove old references to Thunk.
Don't include --opt-whole-program in --opt-all.

Whole program optimization sometimes causes thunks to be evaluated more than
once. Disable it, unless specifically requested, until fixed.