Fitting: better image data type handling.

Fitting: fill masked arrays to get rid of invalid values.
Fixed model description deep copy operation.