Fixed belongsTo and hasMany relations 

In Model.php, the template name for the relation methods was mistaken with the metadata iterator element name ($relations and $templateRelation) so that only "Array" got printed into the initialize method template.
Also added a smicolon at the end of the $templateRelation template string to fix a syntax error.