Support scope.watch for map.isEmpty, map.length, etc; map properties whose types are primitive

Add support for the watching of map properties whose types are
primitive (not collections). Work still needs to be done for map.keys
and map.values.