Accused child rapist wins bail appeal