improve input validation for objects and object arrays
fix cherry-pick issue
improve error message if num columns doesn't match number of values on insert