Text this: Semidefinite relaxations with the method of moments of dynamical programs under discrete variables