Wrong types in app.parameters

Sometimes the app.parameter values are not the correct type.

This happens with OpticalCalibration, OrthoRectification to name a few.

import pyotb
fp = "/data/input/ROI_1_Bundle_Ortho_GSD2015/PROD_SPOT6_001/VOL_SPOT6_001_A/"
     "IMG_SPOT6_MS_001_A/IMG_SPOT6_MS_201503261014386_ORT_SPOT6_20170524_142"
     "2391k0ha487979cy_1_R1C1.TIF"
app = pyotb.OpticalCalibration(fp)
print(type(app.parameters["level"]))

The application does not fail, but this leads to fails with pyotb.summarize() output serialization because of the otbApplication.ApplicationProxy object in app.parameters.

I feel that the current behavior is not expected and could hide other problems.

pyotb 1.5.4

<class str>

pyotb 2.0.0-dev4

<class 'otbApplication.ApplicationProxy'>

Edited by Rémi Cresson