title: Effect "AuthEffects.register$" dispatched an invalid action
body: <p>i've added new effect for register action and got this error: <strong>Effect "AuthEffects.register$" dispatched an invalid action</strong></p>
  
  <p>So, this is my effect:</p>
  
  <pre><code>@Effect()
  register$ = this.actions$.pipe(
      ofType&lt;Register&gt;(AuthActionTypes.Register),
      map(action =&gt; action.payload),
      exhaustMap((register: RegisterModel) =&gt;
        this.authService
          .register(register)
          .pipe(
            tap(status =&gt; new RegisterSuccess(status)),
            catchError(error =&gt; of(new RegisterFailure(error)))
          )
      )
  );
  </code></pre>
  
  <p>this is RegisterSuccess action:</p>
  
  <pre><code>export class RegisterSuccess implements Action {
    readonly type = AuthActionTypes.RegisterSuccess;
  
    constructor(public payload: boolean) {}
  }
  </code></pre>
  
  <p>it returns an boolean which says if register was successfully.
  This is reducer case:</p>
  
  <pre><code>case AuthActionTypes.RegisterSuccess: {
          return {
              ...state,
              error: null,
              success: action.payload
          }
      }
  </code></pre>
  
  <p>Where is the problem? Effect looks like to be ok, action also, is the problem in my reducer?
  Thanks!</p>