fix iterator: iterate an array too