Fix resolving of array types.