more compilation warning fixes, ensure sampled particles have bounded theta and are in bounds