Fix VirtualPrimitive static_assert, remove register warnings from clang.