[Console] Return command also if alias matches name exactly

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Previously there was thrown an InvalidArgumentException if the entered
command was amibigious - even if an alias matched exactly.
`$name` [is not available](http://3v4l.org/J21FL) in the anonymous function. You need to pass it in via `use`. Please add a unit test.