refactor pickler.fs
fix build for emit_il