Add the scan API to FakeDynamo

Details:

(1) Add the scan API support in FakeDynamo
(2) Add test case for the new API support
(3) Restructured the code and move the type utility function into a separate file