Logic to discard recursion if needed is introduced + simple test
additional changes to previous commit
Should rfecognize recursion even if call is hidden in different variables
Additional test
Introduce more informative data about discarded recursion + test + changed logic of recognizng recursion
Another, less strict way to be protected from stack overflow caused by recursion