When using dist there is an invalid converstion from stim::vec3 to stim::vec. This means that the function dist(...) was not updated from using vec to vec3.