XamlParser: avoid disposing the reader

call ToList() so the reader isn't disposed before use.