Scalar::all() in MatOp_Initializer::assign and setIdentity()

fix for [issue 3227](http://code.opencv.org/issues/3227)

took the liberty to change setIdentity() in core.hpp as well, also some tests in tests/mat.cpp