basis.template: rework binding format in declaration, change declaration version to 3