Merge "Fix reference counting for Assembly"