serialize: updated to use new duct++ IO headers.