Minor bugs in ThCopy and ThCopyNL; added some logic to IIP handling in CppFBP