extract & build: add support for basis.template declaration v3 (new bindings format)