Update serialize.h

fix duplicate const_iterator