fix(core): accept non-dict Mapping values in mustache templates (#39680)