[turbopack] improve fragment handling in the resolver (#86888)
Improve the handling of fragments in the resolver
* ensure they are supported for dynamic matches
* ensure we accumulate matches only if they match the original pattern
Also add some unit tests for the resolver to demonstrate a number of existing issues that will be addressed in followups