basis.template: fix debug code for attributes building