Scene.cpp: optimize component type check (type ID over type name), fix typo in variable name, mark down TODOs for duplicate code.