Implement a get_constant_idx helper method on Subtensor and use it when we need the constant values in opts.  Also fix the problem with nnet opts when ShapeFeature is off.