Lift subtensor constant indexes as constants in the graph rather than keep them op-internal.

This is to get feedback on the approach taken to fix this problem.