Fix bug in lib Template that would reset scripts once a raw-script was added