fix($translateProvider): determinePreferredLanguage was not chainable

If registerAvailableLanguageKeys() was called without the aliases
parameter determinePreferredLanguage() was not chainable, because it
did not return this. Fix it and cover it with a test case.

Closes #487