replaced nlambda with nd for number of derivatives; currently adding I and dI.
Reworked all of the compile functions so that the dynamic spatial variables
(those that depend on state) are evaluated in EvaluateFunctions and friend.