Added the function to check literals' overlap on chaining.