Fix a bug that wrong object is checked

The code should check whether column value is vector or not. Range is
a table not a column.