Complex surf validation

This is the companion pull for: https://github.com/gem/oq-hazardlib/pull/231