Fix the inline varchar serial aggregate group by wrong answer bug

Waiting for Jenkins...
Will have a separate pull commit for refactoring it.