Bugfix: Ensure particle filter resampling returns N particles