do not use valPool directly
use symfony_zval_info() when avail.
complete rewrite of the snapshoting algo