All Gneiss functions no longer depend on Gneiss.g being set

Refactored the remaining Gneiss function calls so they no longer depend
on references to Gneiss.g but rather act on an input param.

Added tests for Gneiss.helper.multiextent and refactored the
implementation.

Other general code style cleanup (indentation, semicolons).