fix array enumeration
quick, janky, support for casting arrays to IEnumerable<T> and objects to IDictionary<string, T>