quick fix create object/class : solve exception with union types, plus enable quick fix for optional types