[MONDRIAN-1980] Ancestors function be able to reproduce microsoft functi...

...onality.