Query on attribute fails because it returns java.lang.Integer,

A query of the form
```
[:find ?a ?v :in $ ?e  :where [ ?e ?a ?v _]] 
```
fails because datomic returns an Integer which is not handled by DatomicData.toDatomicData