Changes the as_indexed_json method.
Prevent the hash keys to be overwritten by different attributes
with the same WorkAttribute, as the WorkAttribute.name was
being used as the hash key. Adding the values as an array of
values, instead of a single value per key.