added 8-bit/16-bit integer type handling to Hash