Fix orphan removal on collection clear and embed relations with references
Refactor orphan removal test assertions and comments
Merge pull request #694