Cannot use array_combine - the order of $types is not guaranteed.

Possible fix for Bug: 12016