Re: JSON-LD <script type="application/ld+json"> Question
Nothing in XC will replace type for script. You have something custom or 3rd party module doing this.
BTW you can safely place this script at the very bottom of the page. Google will find it regardless where it is