Make struct pointer loading language-specific and reliable for TS