ToArray was not working when a null element was added to the array.  I was getting a cast exception - this was appearing with null elements going into a DateTime array.
ToArray was not working when a null element was added to the array.  I
was getting a cast exception - this was appearing with null elements going
into a DateTime array.


SVN: 488784591515bd4cdaa016be4ec9b172dc4e7caf@598

nhibernate/nhibernate-core,hazzik/nhibernate-core,alobakov/nhibernate-core,gliljas/nhibernate-core,RogerKratz/nhibernate-core,nhibernate/nhibernate-core,lnu/nhibernate-core,ngbrown/nhibernate-core,nkreipke/nhibernate-core,RogerKratz/nhibernate-core,fredericDelaporte/nhibernate-core,fredericDelaporte/nhibernate-core,nkreipke/nhibernate-core,fredericDelaporte/nhibernate-core,gliljas/nhibernate-core,nkreipke/nhibernate-core,hazzik/nhibernate-core,fredericDelaporte/nhibernate-core,nhibernate/nhibernate-core,RogerKratz/nhibernate-core,alobakov/nhibernate-core,livioc/nhibernate-core,alobakov/nhibernate-core,ngbrown/nhibernate-core,RogerKratz/nhibernate-core,gliljas/nhibernate-core,hazzik/nhibernate-core,ManufacturingIntelligence/nhibernate-core,hazzik/nhibernate-core,gliljas/nhibernate-core,livioc/nhibernate-core,nhibernate/nhibernate-core,ngbrown/nhibernate-core,livioc/nhibernate-core,lnu/nhibernate-core,ManufacturingIntelligence/nhibernate-core,lnu/nhibernate-core,ManufacturingIntelligence/nhibernate-core