fixed clone error via putting CDynamicObjectArray on heap rather than stack, which caused memory errors in parameter registration
removed unset generic, not needed
Merge pull request #1446 from karlnapf/develop

Fix clone for BaggingMachine