fixed bug ni logger.val

The bug prevented nested object properties from being displayed correctly.  They where output as [object] instead of being listed individually.

the problem was the type checking if statement which was checking typeof vals[p] === '[object]'.  it should have been typeof vals[p] === 'object'.  

i changed it and now it works.