Update cal-library/Template.php

Templates in PHP scripts do not recognize script arrays