Fixed ERRAI-597: IOC fails for inherited @Templated beans that are not marked as @Dependent