PropertyTreeDatabase uses templates and simple RTTI to create instances of
defines types. Fixed few small memory leaks. Application is now mem leak
free.