elasticsearch/elasticsearch-net — pull request #1044 by radiosterne (2014-11-06 21:26:34+00:00)
Title: Generic mapping for non-collection type

These changes fix wrong treatment of non-collection generic types: in upstream version they are treated as collection generic types, so if generic type is instantiated with value type, it is mapped to its underlying type, so "Tuple" gets mapped to "integer". Here I'm just checking whether type implements ICollection and use underlyiung type only if it is. Also, basic test is provided. (And I've signed CLA =)