ref? function in datomic utilities to enable recursive turning into objects