Changed t2data write_generator() so that it won't crash if user sets time, rate or enthalpy properties of a generator as arrays rather than lists