Remove redundant insert method in serialize. Same as bitcoin/bitcoin#3162