Add cache for Template object
Fix bug in conditionals not allowing periods

Objects with periods in their key name (e.g. posts.length) weren't being
caught