Allow strings for aliases/ports and force arrays in templates