fix(compile): Interpolate @ locals before the link function runs

Do a one-off interpolation of @ locals to ensure that the link fn receives attributes that are already interpolated.

(Rebased and reworded the commit message to make it easier to merge!)