[CHEF-4799] Handle non-dupable elements when duping attribute arrays