ListOfSamples now uses arraycopy instead of element-by-element copying of initState to state.