Better implementations of 'keySet', 'values'.