[DF-5514] Fixed ability to create Function on const class member