Updated table.tostring

Now, handles any type of index except userdata. Fixed indentation
problem.