Searches for and returns layout dialect fragments amongst a given set of elements.
Find and return clones of all fragments within the given elements, without delving into layout:include or layout:replace elements, mapped by the name of each fragment.
elements - List of elements to search.