[FIX] models: fixes #1017; do not update list in place in the construction of _depends on models