Stub for coastline check plus fixed cat_registration bug. And some other fixes.