Minor tweaks to ANSI formatting code handling.

Generating the codes at format-type rather than at set_format() time
should be less fragile.
Fix M4A detection bug.
Cleanup TTA codec implementation.

Mostly making things explicitly const that aren't going to change.
Bump version to 2.21 final