Get a nested property or its value from an object using simple `a.b.c` paths.