tons of warning fixes, also some 10l bugfixes, including Dominik's PVA bug