All alienations and warranties of lands purporting to convey or pass a greater estate than the grantor may lawfully convey or pass, shall operate as alienation or warranties of so much of the right and estate in such lands as the grantor could lawfully convey, but shall not pass or bar the right to the residue of the estate purported to be conveyed; nor shall the alienation of any particular estate on which a remainder may depend, whether such alienation be by will or other writing, nor the union of such particular estate with the inheritance, by purchase or by descent, so operate, by merger or otherwise as to defeat, impair, or in any way affect such remainder.