Proper collectionPath generation for deeply nested resources (fixes #117)