Neuro-Inspired Dynamic Replanning in Swarms—Theoretical Neuroscience Extends Swarming in Complex Environments