Fix `attachTemplateVars' to return Rep correctly.
Migrate `reify/bind-as' to Rep.