Fixed recursive mixin regression, updated tests to detect such regression in future.
Merge pull request #1929 from seven-phases-max/recursive-loop-regression-fix

Recursive mixin calls regression fix.