StateMatrix::copy_particle use memcpy

This is only used when the type is arithmetic and the dimision is not too small or it is dynamic