Fix friend code decaraltions in template1.rdf
Fix bug in the resource collection post operation