[instancer] fix potential memory leak for compiled glyph bytes Also calculate max_offsets after glyph bytes are compiled, cause byte length of a glyph might change after compile