Mark =~ and !~ methods as writing backref, for compiler use.

This is an additional fix related to #1041. That issue appears to
be fixed already without this change, but I still believe this
change is necessary.