Several fixes related to safety implementation
- Moved GetExtent functionality to frames
- Adopted enhanced common Vector2D instead of custom one
- Changed global safety calculation to use validity for frame safeties
- Changed triangular/quad frames to use 2D points + normals
- Implemented triangle/quad safety and improved Inside
- Rebased on the current master