Added some fixes in serial and Multicore path for scan and scan by key r...

...outines + Added some  offset and inplace test cases for scan and scan by key + removed warning from scan routines