basis.template: fix <b:define> issues

- <b:define> doesn't apply for nested unpredictable bindings anymore
- declaration inherits warnings from included template
- pass all tests