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