Improve `within` documentation. Closes #1117