BUG: Make memmap work with datetime64 data.

I mentioned this problem on the mailing list, here's a test and a fix.