Multiplication improvements and fixes.
Fixed errors in bit shifting scale (GET_SCALE/SET_SCALE macros). Increased
the precision of max values (NUMERICxx_MAX_VALUE), better overflow check in
the input functions.