Aggregate counting/sum query

Yeah, you're right - working with nested types is not really supported by Kibana.

I don't know what you're actually doing in Kibana, but there is one thing to be aware of with your approach. Even though you have added the word Alex twice to that persons field, if you run a terms aggregation on that field, the term Alex will only be counted once. The terms aggregation counts documents that contain the term - not individual occurrences of the term.