serialize::Decoder compat fix and general cleanup