Fixed #5289 (Crash: Stack overflow in isImplicitlyVirtual_rec when checking SVN)
Fixed #5097 (TemplateSimplifier::expandTemplate assertion failure)
Value flow: refactorings, write debug warning if iterating too far