Get the constness somewhat correct...

Another big thing that reenables most of the const-correctness. This is
partially still a bit ugly, but it simplifies some internal operations
while it fucksup some others (The good ones outweight the bad ones). And
I already know how to fix'em...