bugfix: View constructor will assign templates if they are strings.