Check the offset as well as the base when doing a memcpy.

Fixes (I hope!) the case where we're passed capabilities to aligned objects with unaligned offsets.