Fixing getter generation by result type.