Implement ErrorIsNil checker

Instead of a special IsNil checker, implement an ErrorIsNil checker that rejects typed nils.