Use references and const in ObjLoader