Remove last use of deprecated Formula#recursive_deps

Fixes #19107.
Move formula equality tests out of test_bucket
Make test formulae initializers more flexible
link: eliminate naked rescue
Merge remote-tracking branch 'upstream/master'