(PDB-708) Structured fact storage

This series of commits turns on structured fact storage, but keeps backwards compatibility for now.
Maybe this should be {s/Str s/Str} since that's what you're using everywhere else