Fix object literal formatting in generated code