Accept numbers are either numbers or string when parsing print format files.

Canonicalise the token names in print substitutions.
Add unit test for a failing substitution token that is only a number.
Clean out a streaming record when the stream is removed.