print the warning with the right stack level.
Make get_scalar_constant_value bypass DeepCopyOp and OutputGuard

Needed for the ShapeFeature in later commit.
Make the assert compare with equivalent tensorconstant and bypass a few op.
Override TensorConstant.equals to allow to compare with numpy.ndarray.