normalizeSystemPrompts assumed context.systemPrompt was always an array
and called .map directly, crashing on legacy single-string values.
Accept string, string[], null, and undefined; normalize a single string
into a one-element prompt block list.
Fixes#976