Replace the RLE-based getType() function with one that binary-