Adding specs for bug that repeated mask literals when they match placeholders

Closes #68
Closes #123