Add check function for numeric data types (ndarray, TensorVariable)
Add check function for numeric data types (ndarray, TensorVariable)

Based on the Numeric type introduced by Giacomo. Written as function instead of
his data type, because use_theano can change dynamically (so setting a type
when loading the module does not make sense).

mackelab/theano_shim