RTFValue::equals: consider the number of attributes/sprms as well

Change-Id: Ic0cfa01f7a75c81130ac9ff39a971a678a820ee1