fix condition to make struct conversion generate struct field conversion helpers at need

--HG--
extra : amend_source : 240f49031159777036e1e6a139b6d736f59de337
reformat some code