io: Enable object read/write only for POD types.

This probably makes the static asserts unneeded, but it should help
reduce ambiguity between non-POD writes and such.