Display hoisted variables in declaration order.

Preserve the declaration order hoisting of the template generated
parsers and serializer for now, so that we can have smaller change sets
as we convert from templates to concatenation.

Closes #287.