Fix keg version in Formula#to_hash
Fix keg version in Formula#to_hash

Closes Homebrew/homebrew#28550.

Signed-off-by: Jack Nagel <43386ce32af96f5c56f2a88e458cb94cebee3751@gmail.com>

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