Vec2d jsdoc fix
Rect jsdoc fix
rayscan optimizations

Do not scan the same body twice with a single rayscan, no matter how
many cells the body occupies.
test10 smarter robot

Now the robot is decisive, attacking only the closest circle. And it
only avoids close walls.
Finally, it will only chase a circle so far before switching to a
“return home” mode.