Fix the broken variable of ruby when cast array to point3d.