Fixed GetDomain[Object] methods of serialisable classes as it didnt work when objects were deserialised.