Corrected various errors including config file parsing.
Fixed config writing errors, including ensuring the datatype 5 items wrote as a single-element list of floats.