FIX: Correct arithmetic operations

Fixis issues found in the discussion of #240:
Arithmetic operations are now done in their native datatype and only
casted if an overflow happens. This leads to better precision in results.
Also, hex strings are now allowed to have a sign (+ or -) if (and only if) they are
used in arithmetic operations.
Yep, changed in refactor commit. Thanks for your great code review!