Improve templates and validate array parameters
Allow strings for aliases/ports and force arrays in templates
Merge pull request #92 from raphink/dev/templates_arrays

Improve templates and validate array parameters