Add dtype to LazyArray.

Hopefully fixes #1287.