Add missing destructors to parser

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>
Fix leak in print_object test

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>
Remember to clean up intermediate lcov files

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>
Fix leak in value.c

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>
Rework union reduction for 0-2 unions

The old logic was slightly wrong in addition to having a memory leak that was
only plugged with great difficulty.

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>