Added output formatting option to format values with prefix "#" when output in template code.

Added checks for "0" values and returning them as "000000", just in
case ProcessWire converts them to 0.