Fixed issue where media and dates were not being returned properly when returnAsArray was set.
Merge branch 'master' of github.com:collectiveaccess/providence