Export functions that take cc:: and gpu:: types as arguments

We now only look at the namespace of the function itself when deciding
whether or not to export it, not the namespaces of all its parameters.