Fixed some integer type size mismatches. Fixed incorrect Hash calls.