Added a serializer for ranges and demo/test of highlighting definition ranges.
Support for correctly highlighting definitions