Allow indexes to be any scalar
Fix tests
Merge pull request #739 from bakura10/allow-int

Allow indexes to be any scalar