RestrictedValues

So this is like a very rough, badly needs refactoring setting and
checking of restricted values. And yes I really have nothing better to
do than work on this. And I'll be adding a restricted values exception
to be thrown also