basis.template: treat b:show/b:hide that contains non-binding parts as constant (include edge cases)