Topological defects produce exotic mechanics in complex metamaterials