Do not stringify everything in expandAlias()

Added a check to `expandAlias()` to fix #45