added support for deep copies of C++ boards