Make getValueByPath and setValueByPath public and moved to ValueByPath class