[BUGFIX] Exclude some vars from serialization