fix(schema): fix toLowerCase for arrays