Ensure classes referred to by alias name are also added to the final
bundle-set, and worked around a bug within the Trie class.

@andyberry88: When you get a chance would you be able to add a test to
verify that the Trie can support all characters that are valid within
Javascript variable names?