Optionally serialize with indexes. Used for creating smart versions.