replacing funcs.c calloc calls with plot_value_new
mild renaming
further carving out of memory management interface, centralising allocations of plot_value(s)