drm_hwcomposer: reimplement Dump for DrmDisplayCompositor

Also fixes hwc_dump sometimes failing to null terminate its output buffer.

TEST=dumpsys SurfaceFlinger

Change-Id: Ibf93cfd496a07a9375d78a8b239c2c7876aff986
diff --git a/drm_hwcomposer.h b/drm_hwcomposer.h
index 1490438..66c2c81 100644
--- a/drm_hwcomposer.h
+++ b/drm_hwcomposer.h
@@ -171,7 +171,7 @@
     return *this;
   }
 
-  operator bool() {
+  operator bool() const {
     return importer_ != NULL;
   }