Adds some value convertors in preparation for the data processing

Also tidies up the source a little - the dispatcher is now going to become
common to the input and processing phases.