bug 4189 adding bound checks for vec::raw::memcpy and memmove

Nothing else to say I think.