(PDB-708) Structured fact storage

This series of commits turns on structured fact storage, but keeps backwards compatibility for now.
Also to coalesce you must cast, but I'm sure you know that.