MODE-2355 Fixed several indexing related issues

- when constraint contains the OR operator and index should apply only if it applies to all the parts of the constraint
- the (cost * cardinality) formula should always be used when deciding which indexes to use
- when determining the node-type criteria for the index selection, always use only the less-specific node type (i.e. super-type)