fixed missing DLLEXPORTs on explicit instantiations, other minor progress
got rid of default template function parameters.
more missing DLLEXPORTs on explicit instatiations.