BasicObject can refer to BasicObject from within itself.

Fixes #2828.