Angle based constraints

Fixes some issues in geometry and constraint and allows deletion of objects