Fixed a weakness in the angular restraint code

- fixed a weakness in the angular restraint code which misbehaved
  in case ranges involving negative angles were given as input