Added option to value function planners to prevent them from caching the
transition dynamics. This may be useful if the transition dynamics can
change over time, such as in model-based RL. Also cleaned up the code in
all the ValueFunctionPlanner classes.