> Oh I have one additional question. It seems that this addAlias function should also be checking if the path exists. Do you forsee anyone putting in a context wrapper that doesn't support the is_dir function.. or stat? If so then I obviously can't put that check in here.

Not sure if it should check - the path would still just be a reference to another asset, no?