Fixed bug in JSON conversion of snak lists

EntityType was used instead of EntityId for grouping snaks in JSON.
Interestingly, the test cases were specifically checking for the wrong
output as well.