added copy constructor for ofParameter

This  should fix #2945