Fix setting of guid in statement deserialization