Solved by samsja in post #3 
              
              
                Solution : wait for the first call to the model (and so the LazyLinear) before deepcopying it. 
It would be great to have a warning when deepcopying a LazyLinear somewhere.