several small cleanups (and one bugfix to Memory::VariantValue) detected by g++ warnings code