Fixing how domains are built: in the case of a function with a canonical declaration, the parent is that canonical decl since the params are not copied :-\