fix for - failure to serialize instance of class with inherited field