Extended pkgbox_debug_vars() to print arrays/functions