Support for recursive serialisation of TBModel subclasses