The statements that created the points are exactly the same in the plugin as was used to create the points in the Ruby Console.
pts=[]
pts.push Geom::Point3d.new(1,1,1)
pts.push Geom::Point3d.new(2,2,2)
pts.push Geom::Point3d.new(1,1,1)
pts.push Geom::Point3d.new(3,3,3)
pts.push Geom::Point3d.new(2,2,2)
pts.push Geom::Point3d.new(1,1,1)
pts.uniq!
In the plugin nothing is removed as pts.length is 6 before and after the uniq! statement.
In the Ruby Console the 3 duplicates are removed.