Update Model.dump to first load the value

Update Model.dump to first load the value to ensure it's the correct type.
hmm...yeah, you would need a concrete Model class...
Well, maybe it's best to load the model then. It'll be just a few ifs and type comparisons in the worst case, so perhaps it is not "that" bad in the end.