Returns a validated integers list indicating the indices.
If some of the indices cannot be represented as an integer, the
indices are returned as doubles.
Arguments
idxs
A vector indicating subset of elements to
operate over. If NULL, no subsetting is done.