indexOf: check for not supported types