Properly inform about out of range values

This will allow to faster see the real cause of problems (like in issue #74)