Structure and polytypes in thallium superconductors