Better name for internal function.

Also throw TypeError instead of Error in case of bad types.
Add missing type check in nacl.hash().
Nit; rebuild.