simple function to reduce arrays/objects into normalized form with a status and id key