handle proxy tables and primitive types sanely
don't include non-string keys
Merge remote-tracking branch 'robn/lua-console-type-fixes'