added ability to log arrays and objects