Cellular plasticity balances the metabolic and proliferation dynamics of a regenerating liver