Algebras of linear growth and the dynamical Mordell–Lang conjecture