Fix btp_struniq for short arrays