Fix language aliases not being registered.

The registerLanguage function should retrieve the aliases information
from the language instance, NOT the language constructor.

Did this ever work before?
Merge pull request #318 from hayeah/fix-lang-aliases