Switch var_export to serialize()