Console now displays arrays correctly