implement #53, auto expand can not be 'left', 'right', 'both', or 'none'. Additionally, the old boolean values of true and false will still be respected to maintain backwards compatibility.