added copy constructor for ::ProtocolBuffers::Message in to_hash