[Interface][Bugfix] Fix deprecation warnings for iterator comparisons

- I put the warning macro in the wrong place for operator!= (it has to
  be after the "template ...", not before).
- The formatting of the warning messages was really ugly. Improved by
  directly concatenating the lines and not indenting follow-up lines.