problems: make the name() methods static

this allows to retrieve the name of the problem before it is
instantiated. this is required to be able to print the "Initializing
problem" message at the correct point (i.e., before instantiating the
problem).
fix remaining valgrind complaints

now valgrind should work cleanly for all tests. *yay*