Use a specialized implementation for small (<5 elements) dictionaries.
