Fixed return type for DistinctList<>::size; added unit tests