Loop the visit in FortranTemplater

We should loop the visit until no more template instance exist.