Correct placement of declarations in DEFTRANSFORM expander.

Fixes lp#1066451