ASTCompressorTest clean up

Clean up the code a little in order to avoid the huge match/case if we need to add some types
Merge branch 'master' of https://github.com/aghosn/persistence