[SPARK-2093] [SQL] NullPropagation should use exact type value.

`NullPropagation` should use exact type value when transform `Count` or `Sum`.
What do you think about casting here too, in case we ever change/specialize the return type of Count?