Fix grouping of statements when laoding data from dumps

This fixes issue #78.
Is there a reason for not just using *new ArrayList<>()*?