Tweak to how bplist handles UID values.

Pull request as discussed. My time is scarce at the moment so it'd probably be faster if you merge and tweak it as you wish yourself if you want any changes to this :)

Cheers!