Fix the type equal check bug for decode, Add second expression null case for decode