Lean on instance variables when building YAML

Instead of statically selecting which Task variables should be
pumped into a List's YAML serialization, I rely on the Task's
instance variables. This is exposed with a #to_hash method which
just returns a hash of instance variables and their values.