Fix getter/setter type signature for types other than id.