fix naming conflict check
fix tabbed interface index
add getFields helper, use it to fetch scripted and indexed fields
expose type maps on the CastMappingType function
add type for scripted fields, show it in the list
show scripted fields when script is selected
set scripted status on agg param, set value on params.field