fix typos in update functions

Changed a few instances of "param_i" to "param", which was probably the intention. Otherwise the theano code fails to compile.