Better literal checks and handling.