Fixed unique check's inability to handle variable record lengths.

Previously, a unique check against a CSV file where not all rows contained the same number of records could fail with a index out of bounds error. 

This fixes that.