fix(expand): remove unnecessary copy of elem and mod

And added dep itself, if it not contains elems and mods