fix generated setter/getter code

setters/getters were not conforming to the same tuple format
used by encode_message