Fixed 'many.many' relations to return flattened arrays
Added test case
Fixed syntax issues