Fix multiple issues associated with writing & reading empty arrays

This forced a version update, as for empty arrays we now write a "dims"
attribute. This allows one to reconstruct the size of the empty array
(e.g., 2-by-0).
Pointer-type fixes, revealed by recent deprecations
Fix for change in comparison behavior