When `similar(::ComponentArray, l::Int)` is used the resultant array is not a GPU array which breaks SciMLSensitivity + Lux on GPU. A patch is: ```julia Base.similar(ca::ComponentArray, l::Int64) = similar(getdata(ca), l) ```