Getter/Setter generation: take in account variable type