Set default derivatives types automatically.