Resolves #2, updating everything to work with v4.* of Numeric.AD. The penultimate commit shows an alternative approach.