Copying a document from one collection to another generated a database corruption if a range index was defined on the source collection or one of its ancestors.
Copying a document from one collection to another generated a database corruption if a range index was defined on the source collection or one of its ancestors.

svn path=/trunk/eXist-1.0/; revision=2675

jessealama/exist,zwobit/exist,eXist-db/exist,joewiz/exist,RemiKoutcherawy/exist,ljo/exist,windauer/exist,wolfgangmm/exist,zwobit/exist,shabanovd/exist,ambs/exist,lcahlander/exist,MjAbuz/exist,olvidalo/exist,jessealama/exist,adamretter/exist,windauer/exist,kohsah/exist,olvidalo/exist,hungerburg/exist,ljo/exist,windauer/exist,kohsah/exist,joewiz/exist,eXist-db/exist,opax/exist,joewiz/exist,hungerburg/exist,hungerburg/exist,jensopetersen/exist,dizzzz/exist,eXist-db/exist,zwobit/exist,wshager/exist,lcahlander/exist,ljo/exist,patczar/exist,lcahlander/exist,wolfgangmm/exist,olvidalo/exist,zwobit/exist,adamretter/exist,patczar/exist,adamretter/exist,jensopetersen/exist,wshager/exist,dizzzz/exist,MjAbuz/exist,windauer/exist,RemiKoutcherawy/exist,dizzzz/exist,wolfgangmm/exist,jensopetersen/exist,dizzzz/exist,kohsah/exist,RemiKoutcherawy/exist,wshager/exist,zwobit/exist,shabanovd/exist,adamretter/exist,MjAbuz/exist,adamretter/exist,wolfgangmm/exist,adamretter/exist,jensopetersen/exist,lcahlander/exist,hungerburg/exist,wolfgangmm/exist,ambs/exist,kohsah/exist,kohsah/exist,joewiz/exist,RemiKoutcherawy/exist,opax/exist,eXist-db/exist,zwobit/exist,wshager/exist,jessealama/exist,patczar/exist,opax/exist,lcahlander/exist,wshager/exist,joewiz/exist,eXist-db/exist,RemiKoutcherawy/exist,ambs/exist,jessealama/exist,olvidalo/exist,MjAbuz/exist,shabanovd/exist,shabanovd/exist,windauer/exist,patczar/exist,ambs/exist,hungerburg/exist,wolfgangmm/exist,jensopetersen/exist,ljo/exist,ljo/exist,joewiz/exist,dizzzz/exist,RemiKoutcherawy/exist,eXist-db/exist,shabanovd/exist,wshager/exist,olvidalo/exist,patczar/exist,MjAbuz/exist,ljo/exist,jessealama/exist,windauer/exist,shabanovd/exist,patczar/exist,opax/exist,ambs/exist,jessealama/exist,MjAbuz/exist,dizzzz/exist,ambs/exist,opax/exist,jensopetersen/exist,kohsah/exist,lcahlander/exist