more type detection for empty arrays