vla-getcustomscale and vla-getpapersize write their 'results' to the quoted arguments passed, that is, they receive the values.
Type this on the command line after executing Jeff's code:
!scalen [enter]
!scaled [enter]
!paperw [enter]
!paperh [enter]
What do you see?