Define __index__ (closes #1557)
Slight rewrite of tests, explicitly referring to #1557
Merge pull request #1557 from mhvk/quantity-define-index

Integer quantity times list should not be treated as repitition count