Fix a bug of incorrect type ID used for long[] type