Fixed guessing of correct literal type.

Change-Id: I6e77c19de19edcdd44e75e19e7da3c56bb34445f