.set() method fixed to allow single name or dot-notation string