[cpp] Order enums, and handle TFun enums. Ignore default values of null in scripting info