Revision object is returned instead of revision id due to core type upcasting change.