Strict equality of generic type parameter count

Conflicts:
	src/Nest/Resolvers/Writers/TypeMappingWriter.cs
Add unit test for generic type mapping