Catch invalid uses of get/set