Improve support for static data member templates. This revision still has at least one bug, as it does not respect the variable template specialization hierarchy well.