Water/Lava border handling
Water/lava borders need to be treated like a water/land and lava/land border.
I've attached an image explaining this:
Left is the current state.
Right is (I think) the simplest solution: Just treat water like a land tile when creating lava borders and vice versa.