Allow type 'interface' to generate from template

Default 'interface' template was meant to be used if "type" key was not
specified, but it didn't account for type to be set as 'interface'.

Fixes #2