BAR-desc editor crashes less on incompatible file

Somehow VS ignores that BarDescriptorEditor is supposed to match box:
extension & namespace and launches it on any XML. This fix avoids lots of
exceptions thrown, when XML with invalid schema is opened.
Changed the order of project-templates
Fixed precompiled header detection