Improved log message grouping speed a bit by first checking if the
logged object is a Console API array