Throw an error for mixed array value types