Better debugging functions print_vars and print_blocks