Nested resource fixes.

This commit fixes nested resource behavior (#1) and collection loading.