Misc

Small bugfixes, cleanups, test speed-ups, re-enabling compiler warnings, polishing.
Decided to discuss this further with product management. Leaving out of PR for now.