Implemented generation of constant fields

Correct generation of constants that is not primitive or String