Added code to possibly prevent a particle's position from being set to a non-vector value. Also removed some console logging, replacing most of it with asserts.