compress dump files
properly handle builtin functions
small performance improvement