New:  Adding 'vars-on-top' rule (fixes #1148)

Just stick the `var` in the `for` statement below. No need to initialise this to zero twice. Also, `cnt` is no more descriptive than `i`, which is much more common in this codebase.