fixed smr & constants generation
constants are compiled as java classes