unwrap: Simplify handling of masked arrays.
unwrap: Test wrap_around functionality.

This test is currently failing. Most likely, the axes are swapped.
unwrap: Refactor and fix wrap around functionality.
unwrap: Whitespace fixes and comment removal.