Incidentally, fix a memory leak related to DynamicModelAC instantiation, using a std::unique_ptr (see #1490).