fix issue #166 (page.title on templatized pages) + with_scope works with dates as integer