Agreements which relate to shares or stocks and which are considered for registration duty purposes as transferring real estate ownership for valuable consideration under articles 727,728 and 1655 ter are subject to these duties in accordance with the rates applicable to transfers for valuable consideration of immovable property or immovable property rights which give rise to the payment of land registration tax.