Fixed bugs with determining data type from csv values.
Added debug print statement on error.

Change-Id: I908bd8168edf70c4e9acfd5bb95bfe87ea6e1dcb