Allow logging arrays & objects

This will also output the array in the profiler logger.

Signed-off-by: Matt Gates <info@mgates.me>