Serialization rework

Some more progresses on cleaning the serialization code (no major changes), plus some fixes required to merge EtoileUI copy-rewrite branch.
Shouldn't that be `return [self serializedTypeForNumber: value];`?