Bug when using BAT UDFs with grouped aggregates and mitosis (related to 3396)