Catch msgpack::type_error in load

This is the patch for #772.