Handle function declarations in ScopedAliases. Fixes issue 1111
R=johnlenz