Correctly count dictionary objects when encoding binary plists