Add test demonstrating bug in datetime array encoding.