Reordered functions in type_utils and added an equal comparator for
Volume.

Review: https://reviews.apache.org/r/27150