Fix issue with local coord dimension in history point filter.
The MR fixes a problem where the use of 3-component coordinates in the history points filter for 2D elements causes an level 1 assertion in Debug mode. Number of coordinates for local coordinates now set based on shape dimension.