Written some macros for creating property setters

I don't like macros, but this seems like the best approach here :(