fix support in ƒ(typeof and failWhen() for error type optional argument