Allow Profiler to display logged arrays

This allows a developer to log $array variables, and get the full
output. Currently only the word "array" appears if you try to log an
array. But by changing to var_dump() you can view the full contents of
the array