containers: add support for unsafe atom lists and safe atom arrays