Add "getDynamicValue" for SizeAdd node. (#4026)
* added the failing test.
* Implement getDynamicValue and the test passes.
* uses the common function
* remove unnecessary typo
* reformated.
* rebased from origin master
* Add a new test in response to a pr comment.
* reformated.