Fix word hash collision and function parameter type mismatches

- Fixes the word comparison problem from http://issue.cc/r3/2113
- Clean up REBINT vs REBCNT type mismatches in UTF decoding.