Best effort valueOf to support lossy operation

similar to https://github.com/shtylman/node-num/pull/7
just for consistency, although not necessary for my use-case because I stick with node-num and don't use node-int