making $this available as $self to templates so as to remove reliance on a language construct. also made it possible to create arrays off the bat.