Added support for _set and .all on 1toM and MtoM relationships

fixed various exceptions to be TemplateSyntaxError