fixes to the Compare-TamsObject cmdlet