Add @self reference

Added the ability to reference the current object as `@self`, along with documentation and test.