Improved shooting, added multiple ray traversal for grid

Advanced shooting system: actor can shoot from behind of complex
occluders, towards the most visible part of the target.

Added multi-ray traversal for Grid (interval based). Useful for coherent
rays.

Some improvements in base math module.