Improve check for positions at the UC boundary when folding.
Improve check for positions at the UC boundary when folding.

The check had a bug which resulted in only reporting when the
position is close to a vertex of the new unit cell. However, all
positions close to the boundary of the UC are potentially
problematic.

Z2PackDev/TBmodels,Z2PackDev/TBmodels