Since it's only used for a specific thing in Leaflet (and it's not a general templating utility), maybe we can just assume that the method will receive data with consistent property types.