This results in the error java.lang.ClassCastException: class datomic.core.db.Datum cannot be cast to class java.lang.Number. Took a while to troubleshoot this It’s now fixed by using Specter instead of postwalk.
And we have a feeling that this is tripping up postwalk and not allowing it to treat the DB as one unit, but attempting to break it down into parts, and reassemble it.
I.e., Expound is how we encountered this problem, but the problem is not with Expound itself. The same problem will appear wherever a DB appears in a data structure on which postwalk is applied.