Streamline state saving
New target_class type, for binding class instances

Now a class can specify a derivatives function, but do potentially costly
precalculation during parameter setting.  Not yet wired up to work with
integration function, but basic logic is there.