correct concept checks in container algos, add to_container free function
fix multiple definition errors, fixes #70