[Console] Fix `stty` reset when using `DialogHelper#ask()` with autocomplete functionality
[Console] Split tests for `DialogHelper` that tests `ask()` method
Fix bad unit test with undefined offset (spotted by @stloyd)
Fix bug where backspacing to an empty string and using the arrow keys would fail. Added test to prevent in future