improved to_s for AType