In previous reachability patch, we missed the case for enum class. Trying to handle it in this patch and add the corresponding tests.