Updates the attributes for the function instance, handles name changes
        in the parent module as well.

def update(self, name, modifiers, dtype, kind):
        """Updates the attributes for the function instance, handles name changes
        in the parent module as well."""
        self.update_name(name)
        self.modifiers = modifiers
        self.dtype = dtype
        self.kind = kind
        self.update_dtype()