In the attached ECL the result should be empty.
I believe this is problem due to the nested record (which contains a variable length field) in the TABLE. Normally a variable length field before the aggregate would generate a compile error but the compiler seems to be missing it here.
If the nested record is changed to use a fixed length field the results are correct. The results are also correct if the aggregates are moved before the nested record in the TABLE.