an object inspector function, for programming in the console