Detect encoding type from array metadata. Priority order matches the Python encoder spec — broadcasted → array_ref → LUT → quantized → direct.
Detect encoding type from array metadata. Priority order matches the Python encoder spec — broadcasted → array_ref → LUT → quantized → direct.