Converts an object of named arrays into an array of objects