Special-case dense enum lookup

@JakeWharton @swankjesse