Allow incr() to throw an exception instead of returning false...

...fix the usage of constants and implement saving values with set() using the correct value type