fix pointcloud downsampling.
clean up
use w component in cloud import/export, we need it for downsampling
create test for downsampling