fix initialization order in RunState to prevent nullpointers
pass mentalstate.MentalState around more carefully (managed by
goal.core.mentalstate.MentalState now)