Made clone_structure public and fixed a spec context name problem
mentioned in #54.