Overhauled handling of the implicit variable r\row(). Fixes #62.