fixes to serialization/deserialization of BitmapFont (into a bitfont), plus rleEncoding for squeezing some bytes