Fix declaration of 'i' in generated flex <name>__scan_bytes function