Preserve TypeFunction::sym when merging a function type