fix for inline functions in HUGSWrapper causing incorrect code to be generated