Compiler [Type checker]: Added check_variant_overload(). This function is intended to be used to check whether all variants of a variant function are reachable.