Implement cloneDynamic() for {First,Second}DerivExternalFunction.

Since the method was not implement, the method of the parent class was used.
This was leading to wrong results in the context of Ramsey Policy (basically
derivative operators on external functions were dropped from FOCs).
(cherry picked from commit f55fda0938a9b570482afb485f3c27286e78088f)