New getVal, setVal, getArrayVal, setArrayVal methods
Improvements, cleanup, backward compatibility
Merge branch 'api-cleanup' into develop