Clang-alike lightweight RTTI for pcbnew + type casting cleanup.