Fixed some bugs in membership stats view.

There is a hidden graph display of membershipt development over time at
/member/history/ . I don't think you can reach this from anywhere on the
site. Also, no warranty on the correctness or quality of the code. I only
hacked in some quick fixes for some exception when dates-of-entry or
-exit where in the future...