Make `stub_const` work on classes that define `self.send`

Closes #272.