Edited getType to return type referred to by identifier