Refactor index key validation and normalisation.
Merge pull request #74 from rhattersley/refactor-keys-normalisation

Refactor index key validation and normalisation.
Add ConstantArray(), zeros() and ones().