Thus, here everything becomes a bit confusing. Yes, it $bis a PSObject, but it is also an object of type [test]. To see this, you can:
$b.psobject.TypeNames
You will see:
Deserialized.test
Deserialized.System.Object
, - . XML, . Deserialization , "" , , , .
, , ( , , , ), ( , ).
, , $b , , :
[test]$b = Import-Clixml $file
$b , $a.