Handle mapBy on ED models and plain arrays differently
Handle mapBy on ED models and plain arrays differently

Temporary, as ED will soon return a plain array instead of this promise
here.

ilios/common,ilios/common