Circular inlining detection and prevention.
Merge pull request #837 from sjrd/prevent-circular-inlining

Circular inlining detection and prevention.