JWST-IPA: Chemical inventory and spatial mapping of ices in the protostar HOPS 370: evidence for an opacity hole and thermal processing of ices