It could be possible to dump static class properties for all declared classes, static variables in functions and methods, and lexical variables in closures.
Also, although they wouldn't be restorable, variables found in GC roots, and variables returned by ->get_debug_info() and ->get_gc().
Is there any plans for this ? That would be awesome :)