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.  I also updated the tests to expose this bug.

I know the wrong parameters were being passed, but I am not sure I filled them in correctly.