serialize: keep libserialize in sync with rustc-serialize to simplify merging
serialize: silence some warnings
Merge pull request #19980 from erickt/cleanup-serialize

Cleanup serialize

Reviewed-by: alexcrichton