Fix PR16571, which is a bug in the code that checks that all of the types in the bundle are uniform.