Added tests for deletes with null index values + fixed some issues with type conversion when the result set has fields with the value of null