Add choice of dump function in lpad. Allows yaml formatted output which is
easier to read for long sequences.
Minor improvements.