WIP: gradDesOptBase gets the derivative type from super class

Change-Id: If3ce5920491c03b3d4f8fb4f7412e84f843c4482