CheckIo: Revised patch that fixes bug in class function return type. Ticket: #4964