can.Stache performance improvements

This pull request implements the can.Stache performance improvements discussed in #1011.