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

Nothing else to say I think.