Add casts (and a comment) for calloc calls.
Free iterator in refdb_iterator__free.
Free odb backend in free method.
Set refdb backend version.
Free refdb backend in free method.