Don't make objCopy crash on non-objects

Looks to be related to #198, #150, and #100.