Added immediate type generation
Added generator for flag types