Merge "Fix refcounting bugs where the sys refcount could be corrupted during async type creation."