Interesting, I didn't notice since I have Deen, but it'll still try to evaluate it even if you don't use it. One of those leaky abstractions I forgot about. Replace smoothed =... with:
Code:
smoothed = defined(smoother) ? smoother : input.Deen("a3d",4,15,15,20)
I've edited the above to reflect this.