Add support for datomic refs