damage: trim list to size after reading from zip or binary

Signed-off-by: Xavier Raynaud <xavier.raynaud@kalray.eu>
damage: sorted list no longer use hashmap, but array instead.

Signed-off-by: Xavier Raynaud <xavier.raynaud@kalray.eu>
groumpf...
damage: fix some bugs and no longer allocate sorted array when it's not needed.

Signed-off-by: Xavier Raynaud <xavier.raynaud@kalray.eu>
Merge branch 'master' of git:/software/SigmaCToolchain/damage into user/xraynaud/master

Conflicts:
	ruby/damage/java/alloc.rb