Fix data_type issue in constant_iterator