Wrong parent type in Type.array was being used