Make module aliases work in functor arguments