Add support for Slice in state compiler
Convert varchar min/max aggregations to use new aggregation base class