Fix for issue #46

idIndex should just be an array now that it only applies to a single
column.  Fixing a few (old) locations where it was initialized as
object.