implements #53. autoExpand now takes 'both', 'left', 'right', or 'none' as possible values while still supporting the older true/false values.