EZP-21970: reset array before calling key()
EZP-21971: return first alias if using showAllTranslations
EZP-21964: complete test coverage
Merge pull request #627 from ezsystems/fix-EZP-21964-urlalias-coverage

Fix EZP-21964: Improve test coverage of URLAliasService