Extensions: fix handling of inner / outer tparams for runtime extensions