Only attempt to print if x is a suitable data.table

Fixes #832 by only attempting to print suitable data.tables, e.g. those that satisfy class(unclass(x)) == 'list'.