"Lands granted as service inam for religious or charitable purposes partake the character of endowed property and are impressed with a public or religious trust, thereby