Add dup checking back in to symtable folding
Fix folding for static + global initialisers