Generalize and support mix-and-match member/non-member getter/setter for value types.