generator: check for invalid arrays in field names