Allow to reuse the NVCC_compiler without cuda_ndarray lib.

Needed for the new gpuarray.
Fix when scan sequences are provided as a 1-key dict

Add test for that case
Declare variable before using it
Simplify optimization and remove unreachable code.

After additional checks introduced in gh-1578, some code that was
potentially problematic became unreachable. This commit removes it.
This makes gh-1345 obsolete.
Address the case where sequences are provided as dicts.
added numpy.random.choice function to theano.tensor.raw_random random
numbers implementation
Better handling of empty vector constants
Fix estimation of variance for small sample sizes
Fix crash. The dtype is passed to numpy.array() and it understand only dtype, not typecode.
More error info.
Add tests for scalar outputs (size=())
added check to ensure numpy version >= 1.7 is installed in order to use
the choice function
removed duplicate import
removed unused imports and added missing numpy import
added test for choice function
Add tolerance for std, different formula for mean tolerance
Merge pull request #1608 from lamblin/fix_rng_empty_shape

Fix rng empty shape
Merge pull request #1607 from sisp/raw_random_choice

added numpy.random.choice function
Add ARM architecture check for Raspberry Pi
copied the old gpueye code and test.