fix uninitialized memory error in Parameter::copy()

fix for the issue #1821