fix(generic): prevent loading serializable vars in serialized format

related to CAM-3127