specification: add an optional header (D code) to the specification file.
This will be written at the very beginning of the output file and the preamble
will be written before the "stateful" part of the generated code.

Signed-off-by: Peter Williams <pwil3058@gmail.com>