Fix various console api calls

This PR fixes console.count(), console.assert(), console.dir(), console.group(), console.groupCollapsed(), console.groupEnd(), console.warn(), console.trace(), console.table() and ensures stacktraces are displayed in every case. The output of console.count and console.time/timeEnd is slightly different, because the remote side pre-processes the arguments before returning the final result to us.