add index to max_loop check

this check was forgotten during refactoring
don't accept variablenames with index > max_loop

making them default to game_config::max_loop isn't useful im most cases.