Parser refactoring

Using lodash utility functions:

- merge: to merge objects recursively computed by the parser
- first: to obtain the first element of an array without worrying about
null values