BTreeView: Add size computation to key set collection.
Constrain collection types to Comparables.