run all the modules through valgrind, fixed most issues

see https://github.com/jacobwilliams/json-fortran/issues/25 for a caveat