A couple of functions to read and write object properties by using a string dot notation