Accept :length option for index definition

* IndexDefinition member is called :lengths, but dumped/read as :length
* Preserved backwards-compatible support for :lengths
Merge pull request #88 from teleological/v1.0.0-patch-2

Accept :length option for index definition