select type setting par index.
erase warning.
'database' argument has suffix, change to 'index' for TypeSelector and
JsonCustomizer.
remove debugging code.