fixed a var inheritance bug which would cause an inherited link to be writable after being inherited as an alias