Issue1914

issue #1914, Adding advanced indexing to theano