An interesting point also is whether Ferdinand had the right to sign away the rights of his family, normally when a monarch abdicates the next-in-line takes over.
By coincidence I have just been reading the statement of the French conseil d'etat of 1815, which stated specifically that Napoleon in abdicating could not sacrifice the rights of his son to inherit. This was clearly a recognised principle (recognised when convenient).
regards,
Susan