Takes two arrays (keys and values) and returns an object made of those keys and values.