Validate param names earlier. This generates better error messages and improves debug diagnostics.