Add dump_call_graph helper for autotuner

This is kludged into the side of the current interface using a
single standalone function, which dumps JSON of the call and
variable information required by the autotuner to a requested
output file. Not sexy, but functional and isolated.
Test dump_call_graph in bilateral_grid