Correctly set index on enumerable attributes

When indexing a list of values, the index is not created correctly. The set returned by Index#value_from should be created with the enumerable elements and not with the enumerable object.
Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.