Fix get_iterated and get_iteratedNested

Fixed a case where 1 row could be dropped out of the return in special
cases