A shareholders’ agreement that complies with this subchapter is effective among the shareholders and between the shareholders and the corporation even if the terms of the agreement are inconsistent with this code.