Fix memory leak in extracting subfield.
Fix clearning of metadata when extracting subfield.
Extract displacement/velocity subfield from solution for output.