QA: Move ArrayList to use, refrain from using fully qualified form
Add type checks to each(), filter() and map()
Add php.Iterator to valid of() inputs