fix resizing buffer in anyoption

Closes #208