fixed case class type info serialization and empty case class deserialization
(cherry-picked from 8282f64)
Cleaned up imports, bump metafor pl