The right of a person to a pension, retirement allowance, return of contributions, the pension, retirement allowance, any optional benefit, or any other right accrued or accruing to any person under this part are exempt from taxation, including any inheritance tax, whether state, county, municipal, or district.