der: add Decode and Encode impls for PhantomData
#1009
Merged
Decode and Encode impls for PhantomData
#1009