safe unserialization, fixed global read order (_G first)