Fixed the consistent shape check in convert-to-nested-vectors.