Fixed a bug that was causing problems in detecting arrays of named types