Add 'Map Object' footers to Directive and Program trees

* Fixed by Surender Kodam <surenderk@google.com>