(PDB-708) Structured fact storage

This series of commits turns on structured fact storage, but keeps backwards compatibility for now.
You're coalescing and casting to a string here because this is for the v3 API?