Add many d2i/i2d bindings
Merge pull request #957 from reaperhulk/some-serialization-bindings

Add many d2i/i2d bindings