Fixed a problem in ModelBase::EntryVector.

ModelBase::EntryVector cannot be vector<unique_ptr<EntryBase>> since there is an explicit copy constructor (= default) attempts to copy everything in the class (includes the unique_ptr) and causes the compilation fails.
Reduced the use of smart pointers.