fixes #1445; setters not firing on null values

added tests as well