Fix wrong implementation for "W" pragma. refs #2151

Section should be 1-origin, not 0-origin.
test: update data for "W" pragma