[Console] Fix couple of autocomplete bugs and add new test

See: https://github.com/symfony/symfony/pull/6604