Added wrapping for when a too big phase shift and/or duty factor goes out of bounds:
1. Made 2d visualization able to display wrapping.
2. Added wrapping support for boolean test.