The restriction type can be provided in constraints constructor.
Test the restriction mode in the constraints constructors.
Simplify some tests
prepare the code for release 0.10
bump version number in the code