Support both AMD and CommonJS requires in createGeometry.

This lets us run the Cesium tests in National Map's Cesium submodule.