Expand r() to be able to access the stack, itext() and stext() as well.

git-svn-id: https://pennmush.googlecode.com/svn/trunk@1731 ba372814-4f39-11de-9ad6-1127a62b9fcd