Implement FirstDerivative for datadef types

[#20986269]