Added 'clear' to ChainShape

Apparently the change needed for #28 .