null-safe udf.collect.CreateWithPrimitive