Fix bug when singleton_class objects were not generated as a method receiver