Add more consistency checks during templates and destinations definitions load
Replaced StringBuffers by StringBuilders