scaffold in tests for Logic.Fact
pull out impls of Arbitrary into their own module
change parse/dump for reference to encode directly to ByteStrings

that is, fix my silly mistake
add JSON Roundtripping for Facts using GHC.Generic