Added support for passing -1 or null as 'depth' when using dump.

Also, added better documentation of the Dumper class.