Better factored bounds checking for course().
Better factored bounds checking for calculating predicted_target_bearing.
Bug fix: Doing deep copy of particle objects during resampling.