Switch some instances of loop in core
Switch some instances of loop in core

Several instances of loop in the core library are
switched over to the simpler each and for macros.

bakpakin/gst,bakpakin/gst