Added function "logDebug" to Handlebars context.
Fixed problem with interpretation of "files" that are declared in the context.