Add basic logging
Add for loops

This needed remodeling the generic_visit() stuff in CallInliner. If
you ever see yourself using isinstance() in a visitor, rethink what
you're doing (wasted half an afternoon chasing phantoms because
I was expecting it to be called on visit_ForStmt).