Added check to prevent adding duplicates to de-duped arrays; added passing code for prepend and curtail tests
Holy floating point precision, Batman.