Fix code generation for .indexOf for dynamic array od CHAR