Detect tail call when scanning functions.