Simplify Instance<->Stat api, make instance implementation class configurable
Further simplify internal API, remove guard id (never used at all), add more tests