Remove eval_gradient cache as is does not bring a substantial speed increase.
Add CTA typemaps header file.

The CTA typemaps header contains for the moment only an enumeration of class codes that can be used by the CTA classes to avoid dynamic casting.
Implement GCTAClassCode code() method and use it to avoid dynamic type casting.