Remove redundant insert method in serialize.

Same as bitcoin/bitcoin#3162 https://github.com/bitcoin/bitcoin/pull/3162