ceil function added to Twig, minor fixes