Support serializing collections (including compiler-generated enumerables!) as objects.