Implement marshal load and dump methods.