Test for ra flag.
Set ra flag on recursion (fixes #26).