Improved promotion of types in construction of GenericContainer