Added the 'empty' flag to both the sequence type and the map type
Improved the way it is checked if a collection is empty during comparison