twig: Load debug extension in debug mode

This allows for dump() and other debug-related functions.

Signed-off-by: Robin Hallabro <robin.hallabro@sveabyran.se>