[DynareDev] [Trac] #41: bug in resid.m that reset initial values when used after ENDVAL