Support for constant locals, fixed cout bugs with consts/globals, needed globals. Changed getIsGlobal to isGlobal for consistency.