add array yielding support. great suggestion by @domenic