Fix check for Long in readVarint64