BUG: Template type based input function parameter needs to be deterministic
BUG: Template type based input function parameter needs to be deterministic

When instantiating a new object with ITK Python, the template types can be omitted and
will be based on the type of the input parameter.
If the template parameter list contains multiple output types that correspond to the
same input parameter, the template parameters chosen will be the first set of parameters
in the list of keys() that the filter returns.
However, the list of keys() returns by a dictionary has an arbitrary order [1]. This means
that running multiple times the same pipeline could lead to using different sets of
template parameters.
To force a deterministic behavior, we use OrderedDict() instead of Dict().

[1] https://docs.python.org/3/tutorial/datastructures.html

Suggested-by: Bradley Lowekamp <blowekamp@mail.nih.gov>

Change-Id: Ie8cd8ebd6e3fe9d1efe6f25d3a6c47b4b3fcfdc3

stnava/ITK,fbudin69500/ITK,fbudin69500/ITK,stnava/ITK,stnava/ITK,blowekamp/ITK,BRAINSia/ITK,vfonov/ITK,hjmjohnson/ITK,malaterre/ITK,LucasGandel/ITK,BRAINSia/ITK,Kitware/ITK,stnava/ITK,fbudin69500/ITK,LucasGandel/ITK,spinicist/ITK,vfonov/ITK,blowekamp/ITK,BRAINSia/ITK,vfonov/ITK,InsightSoftwareConsortium/ITK,BRAINSia/ITK,stnava/ITK,malaterre/ITK,hjmjohnson/ITK,richardbeare/ITK,blowekamp/ITK,blowekamp/ITK,InsightSoftwareConsortium/ITK,BRAINSia/ITK,stnava/ITK,malaterre/ITK,fbudin69500/ITK,blowekamp/ITK,Kitware/ITK,spinicist/ITK,hjmjohnson/ITK,thewtex/ITK,spinicist/ITK,richardbeare/ITK,spinicist/ITK,blowekamp/ITK,richardbeare/ITK,spinicist/ITK,richardbeare/ITK,InsightSoftwareConsortium/ITK,Kitware/ITK,malaterre/ITK,vfonov/ITK,LucasGandel/ITK,InsightSoftwareConsortium/ITK,LucasGandel/ITK,hjmjohnson/ITK,hjmjohnson/ITK,thewtex/ITK,blowekamp/ITK,malaterre/ITK,InsightSoftwareConsortium/ITK,LucasGandel/ITK,richardbeare/ITK,vfonov/ITK,Kitware/ITK,richardbeare/ITK,thewtex/ITK,fbudin69500/ITK,LucasGandel/ITK,hjmjohnson/ITK,malaterre/ITK,spinicist/ITK,hjmjohnson/ITK,vfonov/ITK,malaterre/ITK,thewtex/ITK,LucasGandel/ITK,vfonov/ITK,spinicist/ITK,stnava/ITK,InsightSoftwareConsortium/ITK,vfonov/ITK,fbudin69500/ITK,stnava/ITK,BRAINSia/ITK,thewtex/ITK,thewtex/ITK,Kitware/ITK,malaterre/ITK,thewtex/ITK,malaterre/ITK,spinicist/ITK,blowekamp/ITK,stnava/ITK,Kitware/ITK,spinicist/ITK,Kitware/ITK,fbudin69500/ITK,fbudin69500/ITK,BRAINSia/ITK,InsightSoftwareConsortium/ITK,vfonov/ITK,richardbeare/ITK,LucasGandel/ITK