These changes cause some helper functions to do less work if the
underlying data hasn't changed. This is part of some work to
'quieten' down openstack.charms based reactive charms that do
'too much' work during update-status.
Change-Id: I3717387d1d8d2ab875d51f262efd1df7f2529689
Related-Bug: #1708396