adds `type` to the file object inside the `forIn` in `.templates`

This will make it easier for middlewares and parsers to filter files. Also adds tests for `.parsers` method.