Fixed mapping of enum values to real values; updating generator and library