BUG: prevent static initialization fiasco during factory registration
BUG: prevent static initialization fiasco during factory registration

It was possible for the global instance of CleanUpObjectFactory to be
used before it was constructed during the initialization phase. Now a
simple cast is performed to ensure that the global is not optimized
away.

Change-Id: I465c3c08b9cf1da705df393dc10f93b88f5497c4

jcfr/ITK,msmolens/ITK,thewtex/ITK,thewtex/ITK,thewtex/ITK,BRAINSia/ITK,hinerm/ITK,stnava/ITK,biotrump/ITK,GEHC-Surgery/ITK,heimdali/ITK,vfonov/ITK,thewtex/ITK,hinerm/ITK,zachary-williamson/ITK,InsightSoftwareConsortium/ITK,PlutoniumHeart/ITK,heimdali/ITK,GEHC-Surgery/ITK,hinerm/ITK,GEHC-Surgery/ITK,biotrump/ITK,hjmjohnson/ITK,zachary-williamson/ITK,blowekamp/ITK,LucasGandel/ITK,vfonov/ITK,heimdali/ITK,stnava/ITK,stnava/ITK,biotrump/ITK,LucHermitte/ITK,LucasGandel/ITK,zachary-williamson/ITK,heimdali/ITK,fuentesdt/InsightToolkit-dev,BRAINSia/ITK,eile/ITK,jmerkow/ITK,jcfr/ITK,vfonov/ITK,spinicist/ITK,Kitware/ITK,InsightSoftwareConsortium/ITK,hinerm/ITK,thewtex/ITK,ajjl/ITK,jmerkow/ITK,fbudin69500/ITK,atsnyder/ITK,PlutoniumHeart/ITK,malaterre/ITK,blowekamp/ITK,hendradarwin/ITK,LucasGandel/ITK,vfonov/ITK,richardbeare/ITK,GEHC-Surgery/ITK,InsightSoftwareConsortium/ITK,GEHC-Surgery/ITK,LucHermitte/ITK,jcfr/ITK,jmerkow/ITK,hjmjohnson/ITK,blowekamp/ITK,BlueBrain/ITK,atsnyder/ITK,hinerm/ITK,biotrump/ITK,msmolens/ITK,fedral/ITK,LucHermitte/ITK,hinerm/ITK,fedral/ITK,richardbeare/ITK,hendradarwin/ITK,hjmjohnson/ITK,BRAINSia/ITK,BRAINSia/ITK,zachary-williamson/ITK,malaterre/ITK,biotrump/ITK,spinicist/ITK,eile/ITK,BlueBrain/ITK,msmolens/ITK,fuentesdt/InsightToolkit-dev,jmerkow/ITK,InsightSoftwareConsortium/ITK,heimdali/ITK,hendradarwin/ITK,hendradarwin/ITK,PlutoniumHeart/ITK,GEHC-Surgery/ITK,hendradarwin/ITK,GEHC-Surgery/ITK,richardbeare/ITK,atsnyder/ITK,jmerkow/ITK,hendradarwin/ITK,fbudin69500/ITK,stnava/ITK,jcfr/ITK,fedral/ITK,fbudin69500/ITK,LucHermitte/ITK,biotrump/ITK,BRAINSia/ITK,fuentesdt/InsightToolkit-dev,LucHermitte/ITK,Kitware/ITK,richardbeare/ITK,biotrump/ITK,fbudin69500/ITK,fedral/ITK,hinerm/ITK,blowekamp/ITK,spinicist/ITK,hjmjohnson/ITK,thewtex/ITK,hinerm/ITK,zachary-williamson/ITK,msmolens/ITK,fuentesdt/InsightToolkit-dev,jcfr/ITK,fuentesdt/InsightToolkit-dev,msmolens/ITK,ajjl/ITK,heimdali/ITK,stnava/ITK,BlueBrain/ITK,malaterre/ITK,LucasGandel/ITK,ajjl/ITK,fedral/ITK,BlueBrain/ITK,spinicist/ITK,spinicist/ITK,fuentesdt/InsightToolkit-dev,InsightSoftwareConsortium/ITK,jcfr/ITK,spinicist/ITK,hinerm/ITK,BlueBrain/ITK,heimdali/ITK,jmerkow/ITK,vfonov/ITK,Kitware/ITK,blowekamp/ITK,fedral/ITK,eile/ITK,PlutoniumHeart/ITK,fuentesdt/InsightToolkit-dev,vfonov/ITK,InsightSoftwareConsortium/ITK,atsnyder/ITK,eile/ITK,BlueBrain/ITK,malaterre/ITK,spinicist/ITK,jmerkow/ITK,blowekamp/ITK,hendradarwin/ITK,LucasGandel/ITK,LucasGandel/ITK,atsnyder/ITK,LucHermitte/ITK,thewtex/ITK,malaterre/ITK,jcfr/ITK,malaterre/ITK,LucasGandel/ITK,atsnyder/ITK,Kitware/ITK,stnava/ITK,vfonov/ITK,blowekamp/ITK,ajjl/ITK,ajjl/ITK,BlueBrain/ITK,malaterre/ITK,ajjl/ITK,fuentesdt/InsightToolkit-dev,BRAINSia/ITK,atsnyder/ITK,richardbeare/ITK,hjmjohnson/ITK,PlutoniumHeart/ITK,fbudin69500/ITK,fedral/ITK,stnava/ITK,stnava/ITK,spinicist/ITK,eile/ITK,eile/ITK,atsnyder/ITK,vfonov/ITK,malaterre/ITK,msmolens/ITK,biotrump/ITK,zachary-williamson/ITK,vfonov/ITK,msmolens/ITK,malaterre/ITK,jcfr/ITK,atsnyder/ITK,hjmjohnson/ITK,zachary-williamson/ITK,spinicist/ITK,BlueBrain/ITK,PlutoniumHeart/ITK,fbudin69500/ITK,GEHC-Surgery/ITK,eile/ITK,ajjl/ITK,richardbeare/ITK,ajjl/ITK,fbudin69500/ITK,BRAINSia/ITK,Kitware/ITK,LucasGandel/ITK,fuentesdt/InsightToolkit-dev,zachary-williamson/ITK,PlutoniumHeart/ITK,PlutoniumHeart/ITK,LucHermitte/ITK,heimdali/ITK,blowekamp/ITK,richardbeare/ITK,eile/ITK,hendradarwin/ITK,Kitware/ITK,InsightSoftwareConsortium/ITK,LucHermitte/ITK,zachary-williamson/ITK,fedral/ITK,stnava/ITK,fbudin69500/ITK,hjmjohnson/ITK,msmolens/ITK,eile/ITK,Kitware/ITK,jmerkow/ITK