BF: fix attributeSetter error and raise error if operations applied to strings/None.