jmap: fix jmap_free, tests.