Fix protocols in unions (runtime problem) (#504) Fixes #488 The fix is as proposed in #488, i.e. by tweaking the existing sys._getframe hack to accommodate it for this special case (protocols in unions) on older versions of typing.