Tweaks to reference counters. Fixes to graph implementation and
auto-boxing.

Signed-off-by: Nathan T Freeman <nathan.freeman@redpilldevelopment.com>