The Gen I Pokemon with baby forms aren't part of the baby species' family. This will be amended when Niantic releases Gen II and we see how they resolve things like Tyrogue candies vs Hitmonlee / Hitmonchan candies.
Gen VII comes with a "balance" update that modifies some Gen I Pokemons' base stats. If Niantic is still using the Gen VI base stat tables, calculation results will not necessarily agree with the PoGo client's results until they switch to Gen VII base stat tables.
Fixed #7 with this pull request.
Two small issues to note with this: