Tricky same-sex divorce case highlights issues with system