babel: fixes for templating and dates