Compiler (amd64): Add some missing type checking to F_FOREACH. The first argument to F_FOREACH wasn't verified to be an array, which would cause core dumps if it wasn't. Fixes [Pike-mailing-list 13472]/[LysLysKOM 20109625].