tweak API to more closely match print_r(), also less magic
dump_r($var, $ret = false, $html = true, $recurse = 1e3, $expand = 1e3)