Only clone if instanceof stdClass