[#525] avoid using `instanceOf` when possible

typically on object child that were created/replicated using the
deepcopy function.