FIX call onAfterSerialize on extensions too