latest fixes

1. Added a few more missing conditionals in some of the components. This is for cases where not all inputs/outputs are required in the derivative graph.

2. Switched over to using John's more correct and general method for apply_derivT in the RK4 component.