formula_installer: check for recommended/optional.
formula_installer: check for recommended/optional.

build.without? seemingly always returns true for requirements that are
neither recommended nor optional so check these before deciding not to
install a default formula.

Closes Homebrew/homebrew#31511.

AnastasiaSulyagina/brew,aw1621107/brew,staticfloat/brew,mahori/brew,mgrimes/brew,EricFromCanada/brew,bfontaine/brew,JCount/brew,nandub/brew,claui/brew,konqui/brew,DomT4/brew,mahori/brew,jmsundar/brew,mistydemeo/homebrew,AnastasiaSulyagina/brew,MikeMcQuaid/brew,gordonmcshane/homebrew,Linuxbrew/brew,JCount/brew,Linuxbrew/brew,EricFromCanada/brew,vitorgalvao/brew,claui/brew,vitorgalvao/brew,MikeMcQuaid/brew,alyssais/brew,jmsundar/brew,Homebrew/brew,ilovezfs/brew,gregory-nisbet/brew,vitorgalvao/brew,pseudocody/brew,amar-laksh/brew_sudo,pseudocody/brew,gordonmcshane/homebrew,toonetown/homebrew,DomT4/brew,maxim-belkin/brew,mistydemeo/homebrew,claui/brew,Homebrew/brew,mgrimes/brew,amar-laksh/brew_sudo,rwhogg/brew,hanxue/linuxbrew,gregory-nisbet/brew,hanxue/linuxbrew,konqui/brew,EricFromCanada/brew,toonetown/homebrew,MikeMcQuaid/brew,JCount/brew,gordonmcshane/homebrew,ilovezfs/brew,muellermartin/dist,amar-laksh/brew_sudo,staticfloat/brew,hanxue/linuxbrew,reelsense/brew,staticfloat/brew,alyssais/brew,konqui/brew,EricFromCanada/brew,pseudocody/brew,vitorgalvao/brew,zmwangx/brew,MikeMcQuaid/brew,sjackman/homebrew,reitermarkus/brew,jmsundar/brew,maxim-belkin/brew,nandub/brew,bfontaine/brew,tonyg/homebrew,sjackman/homebrew,Homebrew/brew,ilovezfs/brew,reitermarkus/brew,Linuxbrew/brew,reitermarkus/brew,nandub/brew,AnastasiaSulyagina/brew,sjackman/homebrew,mahori/brew,palxex/brew,konqui/brew,zmwangx/brew,JCount/brew,tonyg/homebrew,toonetown/homebrew,alyssais/brew,reitermarkus/brew,muellermartin/dist,nandub/brew,mahori/brew,bfontaine/brew,maxim-belkin/brew,Homebrew/brew,tonyg/homebrew,muellermartin/dist,mistydemeo/homebrew,reelsense/brew,palxex/brew,mgrimes/brew,claui/brew,reelsense/brew,Linuxbrew/brew,aw1621107/brew,gregory-nisbet/brew,palxex/brew,rwhogg/brew,zmwangx/brew,aw1621107/brew,sjackman/homebrew,DomT4/brew,rwhogg/brew,DomT4/brew