Fix normalizeSchema when schema is an array

When the schema passed to normailzeSchema is an array of schemas, the
function recursively calls itself for each schema in the array.
However, it is passing the wrong parameters to the function.