Add magic module pickling capability.