When reading primitives from the cib, correctly handle multiple primitive operations of the same type. This complements commit c0289508.