Read a value from the context using a key that can be a nested path with dot notation.
TODO: Support arrays in the path (e.g., "person.children.name").
Parameters
context: any
the context object to read the value from.
key: string
the key to read the value for, which can be a simple key or a nested key using dot notation.
Returns any
the value associated with the key, or undefined if the key is not found.
Read a value from the context using a key that can be a nested path with dot notation. TODO: Support arrays in the path (e.g., "person.children.name").