Add method parseAny, encapsulating the 'typeof' logic
Add method parseArray
Add tests for parseArray