Fix snapshot of static attributes when snapshot of loaded classes is disabled