feature: new loop type Varcircle_phase; bugfix: get_boundary now correctly uses external x-coordinate