Make sure wide_infinity is of dtype floatX

By default, theano will use float32 when converting np.inf into a
TensorConstant, as it is the smallest dtype able to correctly represent
this value, even if floatX == float64.