Fixes incorrect data-typing and conversions for V8

This should fix issue https://github.com/aaronm67/node-phash/issues/4 as well as put us in a position to correctly implement future features.