Fix of later crash when trying to open a wrong project

* Disabled checking of unique items in AdvancedModelDescriptor
* Fixed memory leaks and bad memory releasing
* Cleaned code

(closes OpenFLUID/openfluid#317)
(closes OpenFLUID/openfluid#323)
(closes OpenFLUID/openfluid#361)