This is actually an extraneous test. The built-in is registered with the args TYPE_OBJ, TYPE_LIST, TYPE_LIST. There should be no way in which this function could be called with v.type != TYPE_LIST.
Either it should be fixed to == for pedantic reasons or entirely removed.