Do not use bash array for the glyph index lookup

It has never been a good idea performance-wise. Take some few thousand
glyphs and just grepping the dump makes it several times faster.