Making the dyn_array implementation better, plus documentation

+documentation
+function specifically for pointer-sized objects
Shortening/simplifying UI_DrawGameView()
Removing the preprocessor crap from submap_event.c

It's just unnecessary and makes it harder to read, don't know why I did
this in the first place
More documentation and minor improvement to the dynarray implementation