added check of "allowedTypes" to drop event handler to work with nested lists